import { createRouter, createWebHashHistory } from 'vue-router'
import type { RouteRecordRaw } from 'vue-router'

const routes: Array<RouteRecordRaw> = [
    {
        path: '/login',
        name: 'Login',
        component: () => import("@/views/login/index.vue")
    },
    {
        path: '/index',
        name: 'Index',
        component: () => import("@/views/index/index.vue")
    },
    {
        path: '/three',
        name: 'Three',
        component: () => import("@/views/three/index.vue")
    },
    {
        path: '/jiheti',
        name: 'Jiheti',
        component: () => import("@/views/jiheti/index.vue")
    },
    {
        path: '/',
        name: '/',
        redirect: '/jiheti'
    }
]

const router = createRouter({
    history: createWebHashHistory(),
    routes
})

export default router